/*
 * @Author: funlee 
 * @Email: i@funlee.cn 
 * @Date: 2017-12-11 10:34:51 
 * @Last Modified time:   2017-12-11 10:34:51 
 * @Description: openlayer demo
 *               use "ol": "^4.6.0",
 */
import ol from 'ol/ol'

// import Map from 'ol/map';
// import View from 'ol/view';
// import TileLayer from 'ol/layer/tile';
// import XYZ from 'ol/source/xyz';

 export default () => {
  var map = new ol.Map({
    target: 'map',
    layers: [
      new ol.layer.Tile({
        source: new ol.source.OSM()
      })
    ],
    view: new ol.View({
      center: [13078573.75444912, 4800741.73727404],
      zoom: 4
    })
  });






  // new Map({
  //   target: 'map',
  //   layers: [
  //     new TileLayer({
  //       source: new XYZ({
  //         url: 'https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png'
  //       })
  //     })
  //   ],
  //   view: new View({
  //     center: [13078573.75444912, 4800741.73727404],
  //     zoom: 4
  //   })
  // });
 }